<!doctype html>



  


<html class="theme-next pisces use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css"/>




  <link href="//fonts.googleapis.com/css?family=Lato:300,400,700,400italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">



<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT" />





  <link rel="alternate" href="/atom.xml" title="追背影的熊孩子" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.0" />






<meta name="description" content="在成为最厉害最厉害最厉害的道路上.">
<meta property="og:type" content="website">
<meta property="og:title" content="追背影的熊孩子">
<meta property="og:url" content="http://b.fengbl.cn/page/2/index.html">
<meta property="og:site_name" content="追背影的熊孩子">
<meta property="og:description" content="在成为最厉害最厉害最厉害的道路上.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="追背影的熊孩子">
<meta name="twitter:description" content="在成为最厉害最厉害最厉害的道路上.">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Pisces',
    sidebar: '[object Object]',
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 0,
      author: '博主'
    }
  };
</script>

  <title> 追背影的熊孩子 </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?132dfd4f90476131a6139e7cd32e426b";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  
  
    
  

  <div class="container one-collumn sidebar-position-left 
   page-home 
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">追背影的熊孩子</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Notes & Stories</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu menu-left">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-home fa-fw"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-th fa-fw"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-archive fa-fw"></i> <br />
            
            归档
          </a>
        </li>
      

      
      
      
        <li class="menu-item menu-item-search">
          <a href="#" class="st-search-show-outputs">
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <form class="site-search-form">
  <input type="text" id="st-search-input" class="st-search-input st-default-search-input" />
</form>

<script type="text/javascript">
  (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
    (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
    e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
  })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

  _st('install', 'T4o6Q_jTr-CKSx9X79oD','2.0.0');
</script>



    </div>
  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">

    

    
    

    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/12/03/centos_summary/" itemprop="url">
                  Centos的一些总结
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-12-03T22:19:46+08:00" content="2015-12-03">
              2015-12-03
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Centos/" itemprop="url" rel="index">
                    <span itemprop="name">Centos</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/12/03/centos_summary/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/12/03/centos_summary/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h3 id="ssh证书登陆">ssh证书登陆</h3><p><a href="http://segmentfault.com/a/1190000002911599">原文链接</a></p>
<h3 id="异常_/bin/sh^M:_bad_interpreter:_No_such_file_or_directory">异常 /bin/sh^M: bad interpreter: No such file or directory</h3><p><a href="http://blog.csdn.net/carolzhang8406/article/details/6104361">原文链接</a></p>
<h3 id="开启_sftp">开启 sftp</h3><h4 id="创建sftp组">创建sftp组</h4><pre><code><span class="title">groupadd</span> sftp
</code></pre><h4 id="创建一个sftp用户">创建一个sftp用户</h4><p>名为mysftp，密码为mysftp</p>
<pre><code>useradd -g sftp <span class="operator">-s</span> /bin/<span class="literal">false</span> mysftp

passwd mysftp 
</code></pre>
          <div class="post-more-link text-center">
            <a class="btn" href="/2015/12/03/centos_summary/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/12/03/centos-nginx-vhost/" itemprop="url">
                  Centos、nginx 手动配置 vhost
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-12-03T21:51:55+08:00" content="2015-12-03">
              2015-12-03
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/nginx/" itemprop="url" rel="index">
                    <span itemprop="name">nginx</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/12/03/centos-nginx-vhost/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/12/03/centos-nginx-vhost/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>今天很流畅的打出了 rm -rf /*，终于成了我嘲笑过的人。。</p>
<h4 id="创建文件夹">创建文件夹</h4><pre><code><span class="built_in">cd</span> /etc/nginx
<span class="built_in">mkdir</span> sites-available
<span class="built_in">mkdir</span> sites-enabled
</code></pre><h4 id="创建配置文件">创建配置文件</h4><pre><code><span class="keyword">vi</span> sites-available/xxxx.<span class="keyword">conf</span>
</code></pre>
          <div class="post-more-link text-center">
            <a class="btn" href="/2015/12/03/centos-nginx-vhost/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/11/29/hexo-sidebar-follow/" itemprop="url">
                  Hexo美化のSidebar滚动
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-11-29T16:27:43+08:00" content="2015-11-29">
              2015-11-29
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/折腾/" itemprop="url" rel="index">
                    <span itemprop="name">折腾</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/11/29/hexo-sidebar-follow/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/11/29/hexo-sidebar-follow/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>为了阅读时可以方便查看目录，想让 目录（即sidebar）随页面滚动，在此记录实现方法。</p>
<p><img src="http://7xnocp.com1.z0.glb.clouddn.com/15-11-29/36009422.jpg" alt=""></p>
          <div class="post-more-link text-center">
            <a class="btn" href="/2015/11/29/hexo-sidebar-follow/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/11/29/Crontab/" itemprop="url">
                  Crontab 的使用
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-11-29T14:20:54+08:00" content="2015-11-29">
              2015-11-29
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Centos/" itemprop="url" rel="index">
                    <span itemprop="name">Centos</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/11/29/Crontab/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/11/29/Crontab/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h3 id="Crontab_命令">Crontab 命令</h3><blockquote>
<p>rontab -u //设定某个用户的cron服务，一般root用户在执行这个命令的时候需要此参数<br>crontab -l //列出某个用户cron服务的详细内容<br>crontab -r //删除某个用户的cron服务<br>crontab -e //编辑某个用户的cron服务</p>
</blockquote>
<h3 id="创建">创建</h3><pre><code>crontab <span class="operator">-e</span>
</code></pre><h4 id="形式">形式</h4><p>* * * * * command path</p>
<blockquote>
<p>前五个字段可以取整数值，指定何时开始工作，第六个域是字符串，即命令字段，其中包括了crontab调度执行的命令。 各个字段之间用spaces和tabs分割。</p>
</blockquote>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>说明</th>
<th>取值范围</th>
</tr>
</thead>
<tbody>
<tr>
<td>分钟</td>
<td>每小时的第几分钟执行</td>
<td>0-59</td>
</tr>
<tr>
<td>小时　　</td>
<td>每日的第几个小时执行</td>
<td>0-23</td>
</tr>
<tr>
<td>日期</td>
<td>每月的第几天执行</td>
<td>1-31</td>
</tr>
<tr>
<td>月历</td>
<td>每年的第几月执行</td>
<td>1-12</td>
</tr>
<tr>
<td>星期</td>
<td>每周的第几天执行</td>
<td>0-6</td>
</tr>
<tr>
<td>命令名称</td>
<td>欲执行的命令及参数</td>
</tr>
</tbody>
</table>
          <div class="post-more-link text-center">
            <a class="btn" href="/2015/11/29/Crontab/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/11/29/nginx_ci/" itemprop="url">
                  Nginx、Codeigniter 的结合
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-11-29T11:24:26+08:00" content="2015-11-29">
              2015-11-29
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/nginx/" itemprop="url" rel="index">
                    <span itemprop="name">nginx</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/11/29/nginx_ci/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/11/29/nginx_ci/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h3 id="conf-&#x7684;&#x914D;&#x7F6E;">.conf &#x7684;&#x914D;&#x7F6E;</h3><pre><code><span class="title">server</span> {
<span class="title">listen</span>       <span class="number">80</span>;
<span class="title">server_name</span>  my.xuyu.club;

<span class="comment">#charset utf-8;</span>
<span class="comment">#access_log  /var/log/nginx/log/host.access.log  main;</span>
<span class="title">root</span>   /usr/share/nginx/html;
<span class="title">index</span>  index.php index.html index.htm;

<span class="title">location</span> / {
<span class="title">try_files</span> <span class="variable">$uri</span> <span class="variable">$uri</span>/ /index.php?/<span class="variable">$request_uri</span>;
}

<span class="title">location</span> <span class="regexp">~* ^/(assets|files|robots\.txt)</span> { }

<span class="title">location</span> <span class="regexp">~ \.php$</span> {
    <span class="title">root</span>           /usr/share/nginx/html;
    <span class="title">fastcgi_pass</span>   <span class="number">127.0.0.1:9000</span>;
    <span class="title">fastcgi_index</span>  index.php;
    <span class="title">fastcgi_param</span>  SCRIPT_FILENAME  /usr/share/nginx/html<span class="variable">$fastcgi_script_name</span>;
    <span class="title">include</span>        fastcgi_params;
}

<span class="title">location</span> <span class="regexp">~ /\.ht</span> {
    <span class="title">deny</span>  all;
}
}
</code></pre>
          
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/11/29/update_python_on_centos/" itemprop="url">
                  Centos 下 Python2.6 => 2.7
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-11-29T11:07:57+08:00" content="2015-11-29">
              2015-11-29
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Centos/" itemprop="url" rel="index">
                    <span itemprop="name">Centos</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/11/29/update_python_on_centos/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/11/29/update_python_on_centos/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <h3 id="升级Python">升级Python</h3><h4 id="下载">下载</h4><pre><code><span class="keyword">cd</span> /tmp
wget http<span class="variable">s:</span>//www.<span class="keyword">python</span>.org/ftp/<span class="keyword">python</span>/<span class="number">2.7</span>.<span class="number">10</span>/Python-<span class="number">2.7</span>.<span class="number">10</span>.tar.xz
</code></pre><p><a href="https://www.python.org/downloads/release/python-2710/">更多 Python 版本</a></p>
<h4 id="解压">解压</h4><pre><code><span class="tag">tar</span> <span class="tag">-Jcf</span> <span class="tag">Python-2</span><span class="class">.7</span><span class="class">.10</span><span class="class">.tar</span><span class="class">.xz</span>
</code></pre><p><a href="https://teddysun.com/294.html">更多解压方式</a></p>
          <div class="post-more-link text-center">
            <a class="btn" href="/2015/11/29/update_python_on_centos/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/11/21/Wndr4300/" itemprop="url">
                  Wndr4300 配置 Openwrt
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-11-21T18:02:02+08:00" content="2015-11-21">
              2015-11-21
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/折腾/" itemprop="url" rel="index">
                    <span itemprop="name">折腾</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/11/21/Wndr4300/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/11/21/Wndr4300/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>&#x8BB0;&#x4E0B;url&#xFF0C;&#x6709;&#x7A7A;&#x6574;&#x7406;&#x3002;</p>
<blockquote>
<p><a href="http://tonylee.name/?page_id=14" target="_blank" rel="external">http://tonylee.name/?page_id=14</a><br><a href="http://novawl.blogspot.com/2015/06/openwrtshadowsocksdnsmasqipset.html" target="_blank" rel="external">http://novawl.blogspot.com/2015/06/openwrtshadowsocksdnsmasqipset.html</a><br><a href="https://www.maou.me/39.html" target="_blank" rel="external">https://www.maou.me/39.html</a></p>
</blockquote>

          
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/11/21/First-try/" itemprop="url">
                  使用 Hexo
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2014-11-21T12:03:30+08:00" content="2014-11-21">
              2014-11-21
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/折腾/" itemprop="url" rel="index">
                    <span itemprop="name">折腾</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/11/21/First-try/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/11/21/First-try/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h3 id="&#x4E00;&#x5B89;&#x88C5;-nodejs">&#x4E00;&#x3001;&#x5B89;&#x88C5; node.js</h3><h4 id="install-nvm">install nvm</h4><pre><code>$ cd ~/git
$ git <span class="keyword">clone</span> <span class="title">https</span>://github.com/creationix/nvm.git
</code></pre><p>&#x914D;&#x7F6E;&#x7EC8;&#x7AEF;&#x542F;&#x52A8;&#x65F6;&#x81EA;&#x52A8;&#x6267;&#x884C; <code>source ~/git/nvm/nvm.sh</code><br>&#x5728; <code>~/.bashrc</code>, <code>~/.bash_profile</code>, <code>~/.profile</code>, &#x6216;&#x8005; <code>~/.zshrc</code> &#x6587;&#x4EF6;&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x540E;&#x91CD;&#x65B0;&#x6253;&#x5F00;&#x7EC8;&#x7AEF;:</p>
<pre><code><span class="keyword">source</span> ~<span class="regexp">/git/</span>nvm<span class="regexp">/nvm.sh</span>
</code></pre><h4 id="install-nodejs">install node.js</h4><pre><code>nvm install <span class="number">0.11</span><span class="number">.11</span>
</code></pre><h5 id="&#x56FD;&#x5185;&#x52A0;&#x901F;&#x5B89;&#x88C5;">&#x56FD;&#x5185;&#x52A0;&#x901F;&#x5B89;&#x88C5;&#xFF1A;</h5><pre><code>NVM_NODEJS_ORG_MIRROR=<span class="string">https:</span><span class="comment">//npm.taobao.org/dist nvm install 0.11.11</span>
</code></pre><p>&#x4E3A;&#x4E86;&#x4E0D;&#x6BCF;&#x6B21;&#x90FD;&#x8F93;&#x5165;&#xFF0C;&#x53EF;&#x4EE5;&#x4FEE;&#x6539;<code>.bashrc</code>&#x6587;&#x4EF6;&#xFF0C;&#x52A0;&#x5165;&#x5982;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<pre><code><span class="comment"># nvm</span>
<span class="built_in">export</span> NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/dist
<span class="built_in">source</span> ~/git/nvm/nvm.sh
</code></pre><h3 id="&#x4E8C;&#x5B89;&#x88C5;-hexo">&#x4E8C;&#x3001;&#x5B89;&#x88C5; hexo</h3><pre><code><span class="variable">$ </span>npm install hexo-cli -g
<span class="variable">$ </span>hexo init blog
<span class="variable">$ </span>cd blog
<span class="variable">$ </span>npm install
</code></pre><p><a href="https://github.com/hexojs/hexo" target="_blank" rel="external">Hexo-Github</a></p>
<h4 id="install-plugins">install plugins</h4><h5 id="hexo-back-up">hexo-back-up</h5><pre><code>npm <span class="operator"><span class="keyword">install</span> hexo-git-<span class="keyword">backup</span> <span class="comment">--save</span></span>
</code></pre><p><a href="https://github.com/coneycode/hexo-git-backup" target="_blank" rel="external">Hexo-back-up Github</a></p>
<h5 id="&#x56FD;&#x5185;&#x52A0;&#x901F;&#x5B89;&#x88C5;">&#x56FD;&#x5185;&#x52A0;&#x901F;&#x5B89;&#x88C5;&#xFF1A;</h5><pre><code><span class="built_in">npm</span> --registry=<span class="attribute">https</span>:<span class="regexp">//</span>registry.<span class="built_in">npm</span>.taobao.org install cnpm -g
</code></pre><p>&#x4EE5;&#x540E;&#x5C31;&#x53EF;&#x4EE5;&#x7528; cnpm &#x66FF;&#x4EE3; npm &#x4E86;&#x3002;</p>

          
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/11/21/hello-world/" itemprop="url">
                  Hello World
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2014-11-21T12:03:22+08:00" content="2014-11-21">
              2014-11-21
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/11/21/hello-world/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/11/21/hello-world/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          <p>Welcome to <a href="http://hexo.io/">Hexo</a>! This is your very first post. Check <a href="http://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="http://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick_Start">Quick Start</h2><h3 id="Create_a_new_post">Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run_server">Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
          <div class="post-more-link text-center">
            <a class="btn" href="/2014/11/21/hello-world/#more" rel="contents">
              阅读全文 &raquo;
            </a>
          </div>
        
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>



    

  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="http://ww4.sinaimg.cn/large/c048f998jw1ey8qmhh0pjj20g40ebjs7.jpg"
               alt="Fengit" />
          <p class="site-author-name" itemprop="name">Fengit</p>
          <p class="site-description motion-element" itemprop="description">在成为最厉害最厉害最厉害的道路上.</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">19</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          <div class="site-state-item site-state-categories">
            <a href="/categories">
              <span class="site-state-item-count">9</span>
              <span class="site-state-item-name">分类</span>
              </a>
          </div>

          <div class="site-state-item site-state-tags">
          <a href="/tags">
              <span class="site-state-item-count">27</span>
              <span class="site-state-item-name">标签</span>

          </a>
          </div>

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/hmilyfyj" target="_blank">
                  
                    <i class="fa fa-github"></i> GitHub
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.weibo.com/3226007960" target="_blank">
                  
                    <i class="fa fa-weibo"></i> Weibo
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/feng-ying-jie" target="_blank">
                  
                    <i class="fa fa-globe"></i> zhihu
                  
                </a>
              </span>
            
          
        </div>

        
        

        <div class="links-of-author motion-element">
          
        </div>

      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy;  2015 - 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="icon-next-heart fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fengit</span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="http://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>



      </div>
    </footer>

    <div class="back-to-top"></div>
  </div>

  


  



  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  <script type="text/javascript" src="/vendors/velocity/velocity.min.js"></script>

  <script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js"></script>

  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.0"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.0.0"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.0.0"></script>



  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.0"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"fenghexo"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      //ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.src = '/js/src/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
  






  
  

  
  

  <script type="text/javascript">

  $(document).ready(function(){
    var isMobile = navigator.userAgent.match(/iphone|android|phone|mobile|wap|netfront|x11|java|opera mobi|opera mini|ucweb|windows ce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i);
    isMobile = (isMobile != null);
  if (!isMobile) {
    $(function() {
        var $sidebar   = $("#sidebar"),
            $window    = $(window),
            $header    = $("#header-inner"),
            offset     = $sidebar.offset(),
            topPadding = 15;

        $window.scroll(function() {
            if ($window.scrollTop() > offset.top) {
              //console.log($window.scrollTop());
              //console.log(offset.top);
                $sidebar.stop().animate({
                    //marginTop: $window.scrollTop() - offset.top + topPadding
                    marginTop: $window.scrollTop()  + topPadding
                });
            } else {
                $sidebar.stop().animate({
                    marginTop: offset.top
                });
            }
        });

    });
    }
  });
  </script>

</body>
</html>
